<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <title>用户资料</title>
    <link
      href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
      rel="stylesheet"
    />
  </head>
  <body>
    <div class="container mt-5">
      <h1 class="text-center">用户资料</h1>
      <p>用户名: {{ user.username }}</p>
      <p>手机号码: {{ user.phone }}</p>
      <p>角色: {{ user.get_role_display }}</p>
      <a href="{% url 'logout' %}" class="btn btn-danger">退出登录</a>
    </div>
  </body>
</html>
